package com.woniu.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * (Order)实体类
 *
 * @author makejava
 * @since 2025-06-10 10:40:18
 */
public class Order implements Serializable {
    private static final long serialVersionUID = -18190480788154011L;
    /**
     * 订单id
     */
    private String orderId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 订单状态（0表示已完成，1表示待支付，2表示已退款，3表示已关闭）
     */
    private Integer status;

    /**
     * 支付方式（订单状态为0才有,只有支付宝，微信支付和银联支付）
     */
    private String orderMethod;

    /**
     * 支付来源（小程序或网页）
     */
    private String orderSource;

    /**
     * 创建时间（下单时间）
     */
    private Date createTime;

    /**
     * 支付时间（订单状态为0才有）
     */
    private Date payTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建者
     */
    private String creater;

    /**
     * 更新者
     */
    private String updater;

    /**
     * 备注
     */
    private String remark;

    /**
     * 用户名
     */
    private String username;

    /**
     * 用户真实姓名
     */
    private String userRealName;

    private Integer timer;

    public Integer getTimer() {
        return timer;
    }

    public void setTimer(Integer timer) {
        this.timer = timer;
    }

    // Getter 和 Setter 方法
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOrderMethod() {
        return orderMethod;
    }

    public void setOrderMethod(String orderMethod) {
        this.orderMethod = orderMethod;
    }

    public String getOrderSource() {
        return orderSource;
    }

    public void setOrderSource(String orderSource) {
        this.orderSource = orderSource;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", userId=" + userId +
                ", price=" + price +
                ", status=" + status +
                ", orderMethod='" + orderMethod + '\'' +
                ", orderSource='" + orderSource + '\'' +
                ", createTime=" + createTime +
                ", payTime=" + payTime +
                ", updateTime=" + updateTime +
                ", creater='" + creater + '\'' +
                ", updater='" + updater + '\'' +
                ", remark='" + remark + '\'' +
                ", username='" + username + '\'' +
                ", userRealName='" + userRealName + '\'' +
                ", timer=" + timer +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }
}

